The failure to read "backend/tap/<domid>/*" in the xenstore is a usual
case since the domain is gone after xenstore-ls command is executed.
The error should be ignored.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
do
for dev in $(xenstore-list "$base_path/$dom")
do
- params=$(xenstore_read "$base_path/$dom/$dev/params" | cut -d: -f2)
+ params=$(xenstore_read_default "$base_path/$dom/$dev/params" "" | cut -d: -f2)
if [ "$file" = "$params" ]
then
return
fi
else
- local m=$(xenstore_read "$base_path/$dom/$dev/mode")
+ local m=$(xenstore_read_default "$base_path/$dom/$dev/mode" "")
m=$(canonicalise_mode "$m")
if [ "$m" = 'w' ]
return
fi
else
- local m=$(xenstore_read "$base_path/$dom/$dev/mode")
+ local m=$(xenstore_read_default "$base_path/$dom/$dev/mode" "")
m=$(canonicalise_mode "$m")
if [ "$m" = 'w' ]